package com.ruoyi.retailer.mapper;

import com.ruoyi.retailer.domain.TraceTransport;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.api.domain.vo.CropsVo;

import java.util.List;

/**
* @author PC
* @description 针对表【trace_transport(物流管理信息)】的数据库操作Mapper
* @createDate 2023-05-26 17:27:38
* @Entity com.ruoyi.retailer.domain.TraceTransport
*/
public interface TraceTransportMapper extends BaseMapper<TraceTransport> {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table trace_transport
     *
     * @mbg.generated Tue Nov 03 22:03:31 CST 2020
     */
    int deleteByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table trace_transport
     *
     * @mbg.generated Tue Nov 03 22:03:31 CST 2020
     */
    int insert(TraceTransport record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table trace_transport
     *
     * @mbg.generated Tue Nov 03 22:03:31 CST 2020
     */
    int insertSelective(TraceTransport record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table trace_transport
     *
     * @mbg.generated Tue Nov 03 22:03:31 CST 2020
     */
    TraceTransport selectByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table trace_transport
     *
     * @mbg.generated Tue Nov 03 22:03:31 CST 2020
     */
    int updateByPrimaryKeySelective(TraceTransport record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table trace_transport
     *
     * @mbg.generated Tue Nov 03 22:03:31 CST 2020
     */
    int updateByPrimaryKey(TraceTransport record);

    List<TraceTransport> listTransport(String driverId);

    int updateByCropsId(TraceTransport traceTransport);

    List<TraceTransport> listCrops(String deptId);

    int changeInToOut(String cropsId);

    List<CropsVo> queryCropsList(Integer deptId);

    int updateReceiveStatus(TraceTransport traceTransport);

}




